﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="SiteInput.ascx.cs" Inherits="admin_webparts_Common_SiteInput" %>
<%@ Import Namespace="NTTHAO.CommonWeb" %> 
<%@ Import Namespace="NTTHAO.CommonWeb" %> 
<form id="SiteForm" runat="server">
<div class="tip">
    <h1>Site <%="siteedit".Equals(Request.QueryString["type"], StringComparison.OrdinalIgnoreCase) ? "Edit" : "Add"%></h1>
</div>
<p style="text-align: left;">
    <span id="spSave" class="yui-button yui-link-button yuibtn yuibtn-icon btnsave"><span class="first-child"><asp:Button ID="btnSave" runat="server" OnClick="btnSave_Click" Text="Save" /></span></span>
    <span id="spCancel1" class="yui-button yui-link-button yuibtn yuibtn-icon btncancel"><span class="first-child"><a href="?"><%=LanguageUtility.GetLanguageText("CANCEL", Session)%></a></span></span>
    <script type="text/javascript">
        YAHOO.util.Event.onContentReady("spSave", function () {
            var spSave = new YAHOO.widget.Button("spSave");
        });
        YAHOO.util.Event.onContentReady("spCancel1", function () {
            var spCancel1 = new YAHOO.widget.Button("spCancel1");
        });
    </script>
</p>
<table width="100%" cellspacing="1" cellpadding="3" border="1" style="margin-top: 10px;" class="grid">
    <tr class="even">
        <td width="1%" nowrap="nowrap">Site ID:</td>
        <td><asp:TextBox ID="txtSiteID" runat="server" Width="500px"></asp:TextBox></td>
    </tr>
    <tr class="odd">
        <td width="1%" nowrap="nowrap">Site Name:</td>
        <td><asp:TextBox ID="txtSiteName" runat="server" Width="500px"></asp:TextBox></td>
    </tr>
    <tr class="even">
        <td width="1%" nowrap="nowrap">Site Domain:</td>
        <td>http://www.<asp:TextBox ID="txtDomain" runat="server" Width="432px"></asp:TextBox></td>
    </tr>
    <tr class="odd">
        <td width="1%" nowrap="nowrap">Default Language:</td>
        <td><asp:DropDownList ID="cmbDefaultLaguage" runat="server" Width="504px"></asp:DropDownList></td>
    </tr>
    <tr class="even">
        <td width="1%" nowrap="nowrap">Content Type:</td>
        <td><asp:TextBox ID="txtContentType" runat="server" Width="500px" Text="text/html; charset=utf-8"></asp:TextBox></td>
    </tr>
    <tr class="odd">
        <td width="1%" nowrap="nowrap">Title:</td>
        <td><asp:TextBox ID="txtTitle" runat="server" Width="500px"></asp:TextBox></td>
    </tr>
    <tr class="even">
        <td width="1%" nowrap="nowrap">Keywords:</td>
        <td><asp:TextBox ID="txtKeywords" runat="server" Width="500px" TextMode="MultiLine" Height="66px"></asp:TextBox></td>
    </tr>
    <tr class="odd">
        <td width="1%" nowrap="nowrap">Description:</td>
        <td><asp:TextBox ID="txtDescription" runat="server" Width="500px" TextMode="MultiLine" Height="66px"></asp:TextBox></td>
    </tr>
    <tr class="even">
        <td width="1%" nowrap="nowrap">Author:</td>
        <td><asp:TextBox ID="txtAuthor" runat="server" Width="500px" Text="Transcom"></asp:TextBox></td>
    </tr>
    <tr class="odd">
        <td width="1%" nowrap="nowrap">Copyright:</td>
        <td><asp:TextBox ID="txtCopyright" runat="server" Width="500px" Text="Transcom"></asp:TextBox></td>
    </tr>
    <tr class="even">
        <td width="1%" nowrap="nowrap">Generator:</td>
        <td><asp:TextBox ID="txtGenerator" runat="server" Width="500px" Text="Thảo Nguyễn"></asp:TextBox></td>
    </tr>
    <tr class="odd">
        <td width="1%" nowrap="nowrap">Shortcut Icon:</td>
        <td><asp:TextBox ID="txtShortcutIcon" runat="server" Width="500px"></asp:TextBox></td>
    </tr>
</table>
<p style="text-align: left; margin-top: 10px;">
    <span id="spSave2" class="yui-button yui-link-button yuibtn yuibtn-icon btnsave"><span class="first-child"><asp:Button ID="btnSave2" runat="server" OnClick="btnSave_Click" Text="Save" /></span></span>
    <span id="spCancel2" class="yui-button yui-link-button yuibtn yuibtn-icon btncancel"><span class="first-child"><a href="?"><%=LanguageUtility.GetLanguageText("CANCEL", Session)%></a></span></span>
</p>
</form>
<script type="text/javascript">
    YAHOO.util.Event.onContentReady("spSave2", function () {
        var spSave2 = new YAHOO.widget.Button("spSave2");
    });
    YAHOO.util.Event.onContentReady("spCancel2", function () {
        var spCancel2 = new YAHOO.widget.Button("spCancel2");
    });
    YAHOO.util.Event.onDOMReady(function() {
        document.getElementById("<%=txtSiteID.ClientID %>").focus();
        document.getElementById("<%=txtSiteID.ClientID %>").select();
    });
</script>
<style type="text/css">
    #spCancel1, #spSave, #spCancel2, #spSave2 {font-size:1.1em; font-weight: bold; }
    #spCancel1 button, #spSave button, #spCancel2 button, #spSave2 button { font-family: Verdana,Arial,Helvetica,sans-serif; font-weight: bold; }
</style>